ABSTRACT
With the global outbreak of Corona Virus Disease 2019(COVID-19), many countries had made it mandatory for people to wear masks in public places. This paper proposed a novel mask detection algorithm RMPC (Restructing the Maxpool layer and the Convolution layer)-YOLOv7 based on YOLOv7 for detecting whether people wear masks in public places. The RMPC-YOLOv7 algorithm reconstructed the downsampling structure in the original YOLOv7 algorithm. We changed the stacking of the maxpooling layer and the convolutional layer. This enabled the feature information to be fully integrated to achieve the accuracy improvement of the new model. Through comparison experiments, our proposed RMPC-YOLOv7 had was improved 0.9% and 1.2% for mAP0.5 and mAP0.5:0.95, respectively. The experimental results demonstrated the feasibility of RMPC-YOLOv7. © 2023 IEEE.